set BC=F:\coding\OOP\BC
set BC_INC=%BC%\INCLUDE
set BC_LIB=%BC%\LIB
set WR_DIR=F:\coding\OOP\OOP\LAB_1_reorg\build
echo '%TIME%_%DATE%' >> build\time_log.txt
echo '%TIME%_%DATE%' >> build\build.log
echo 'start building...'
IF EXIST build (
	del build\*.exe
	del build\*.obj
	echo 'cleaning n_run dir'
) ELSE (
	MD build
	echo 'create build dir'
)
IF EXIST RUN_TEST.EXE (
	del RUN_TEST.EXE
	echo 'del RUN.EXE'
)
echo 'bcc run'
bcc -nbuild -I%BC_INC% -Isource\H -L%BC_LIB% -eRUN_TEST source\CPP\*.cpp source\demo\demo.cpp > build\m_test_build.log || pause
COPY build\RUN_TEST.EXE
TITLE 'UNIT TEST OOP\LAB_1pr1'
CLS
build\RUN_TEST.EXE
del RUN_TEST.EXE